package neusoft.example.com.yuejian06.Service;

import java.util.List;

import neusoft.example.com.yuejian06.Bean.Comment;
import neusoft.example.com.yuejian06.Bean.Picture;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface PictureService {
    //晒图列表
    @GET("getPictureList")
    Call<List<Picture>> getPictureList();

    //晒图详情
    @GET("getPictureById")
    Call<Picture> getPicture(@Query("picture_id") String picture_id);

    //发布晒图??
    @GET("addPicture")
    Call<Picture> addPicture(@Query("user_id") int user_id,
                             @Query("picture_title") String picture_title,
                             @Query("picture_content") String picture_content,
                             @Query("picture_pic") String picture_pic);

    //删除晒图
    @GET("deletePicture")
    Call<Picture> deletePicture(@Query("picture_id") int picture_id);



    //获取晒图评论列表
    @GET("getCommentList")
    Call<List<Comment>> getCommentList(@Query("picture_id") String picture_id);

   //发布晒图评论
    @GET("addComment")
    Call<Comment> addComment(@Query("user_id") int user_id,
                             @Query("picture_id") int picture_id,
                             @Query("comment_content") String comment_content);


}